package com.jlect.swebing.ui.client.laf;

/**
 * Class stores active event provider
 *
 * @author Sergey Kozmin
 * @since 09.12.2007 20:54:34
 */
public class SystemEventsConfig {
    private static EventProvider eventProvider = null;
    public static EventProvider getEventProvider() {
        if(eventProvider == null) {
            throw new IllegalStateException("Initialize event provider first. ");
        }
        return eventProvider;
    }

    public static void setEventProvider(EventProvider eventProvider) {
        SystemEventsConfig.eventProvider = eventProvider;
    }
}
